<html>

<head>

<?php include("../../MerchandiseBay/conn.php"); ?>
<?

$t=$_REQUEST['t'];
$d=trim($_REQUEST['d']);

$sql="delete from $t where id='$d'";    
$qry=mysql_query($sql,$conn);

if($t=="admin")
  { ?>
        <script language=javascript>
          window.alert("Delete successful"); 
          window.location.assign("listStaff.php");
        </script>
  <? }
  
if($t=="category")
  { ?>
  		<script language=javascript>
		window.alert("Delete successful");
		window.location.assign("listCategory.php");
		</script>
  
<? }
if($t=="reservation")
  { ?>
  		<script language=javascript>
		window.alert("Delete successful");
		window.location.assign("listReservation.php");
		</script>
  
<? }?>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body>

</body>

</html>
